<!DOCTYPE html>
<html lang="zh-CN">





<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="https://s2.ax1x.com/2020/01/23/1EwDcq.png">
  <link rel="icon" type="image/png" href="https://s2.ax1x.com/2020/01/23/1EwDcq.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="description" content="">
  <meta name="author" content="Fansure Grin">
  <meta name="keywords" content="share,hexo,blog,博客,分享">
  <title>Fansure的小栈</title>

  <link rel="stylesheet" href="/lib/font-awesome/css/all.min.css"  >
<link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css"  >
<link rel="stylesheet" href="/lib/mdbootstrap/css/mdb.min.css"  >
<link rel="stylesheet" href="/lib/github-markdown/github-markdown.min.css"  >

<link rel="stylesheet" href="//at.alicdn.com/t/font_1067060_qzomjdt8bmp.css">



  <link rel="stylesheet" href="/lib/prettify/tomorrow-night-eighties.min.css"  >

<link rel="stylesheet" href="/css/main.css"  >


  <link rel="stylesheet" href="/lib/fancybox/jquery.fancybox.min.css"  >


<meta name="generator" content="Hexo 4.2.0"></head>


<body>
  <header style="height: 100vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/">&nbsp;<strong>Fansure的小栈</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
          <li class="nav-item">
            <a class="nav-link" href="/">首页</a>
          </li>
        
          
          
          
          
          <li class="nav-item">
            <a class="nav-link" href="/archives/">归档</a>
          </li>
        
          
          
          
          
          <li class="nav-item">
            <a class="nav-link" href="/categories/">分类</a>
          </li>
        
          
          
          
          
          <li class="nav-item">
            <a class="nav-link" href="/tags/">标签</a>
          </li>
        
          
          
          
          
          <li class="nav-item">
            <a class="nav-link" href="/about/">关于</a>
          </li>
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="view intro-2" id="background"
         style="background: url('https://s2.ax1x.com/2020/02/10/1IE7He.jpg')no-repeat center center;
           background-size: cover;
           background-attachment: fixed;">
      <div class="full-bg-img">
        <div class="mask rgba-black-light flex-center">
          <div class="container text-center white-text fadeInUp">
            <span class="h2" id="subtitle">
              
            </span>

            
          </div>

          
            <div class="scroll-down-bar">
              <i class="fas fa-angle-down scroll-down-arrow"></i>
            </div>
          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      <div class="container nopadding-md">
        <div class="py-5 z-depth-3" id="board">
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                


  <div class="row mb-4 mx-auto">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/02/11/hexo-build-03/" target="_self">
          <img src="https://up.enterdesk.com/edpic_source/ba/d3/3c/bad33cdd4268554aea3a176b118d8b14.jpg" srcset="/img/loading.gif" alt="Hexo博客部署到Gitee(码云)平台，开启Pages 服务" class="img-fluid rounded z-depth-3 index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 m-auto">
      <a href="/2020/02/11/hexo-build-03/">
        <p class="h4 index-header">Hexo博客部署到Gitee(码云)平台，开启Pages 服务</p>
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">我为什么把Hexo部署到Gitee(码云)上呢？什么是Pages服务呢？
首先，Gitee Pages 服务是一个支持Jekyll、Hugo、Hexo静态网站的服务，它是免费使用的， 但仅供博客 / 门户 / 开源项目网站 / 开源项目静态效果演示用途。就是说，我们把Hexo搭建的博客，放到Gitee上，它给我们指定一个URL地址，只要有网络，我们就可以通过URL地址来访问我们搭建的Hexo博客，我们就不用购买服务器了。
除了Gitee这样的平台外，还有Github、Gitlab和Coding，其中Coding和腾讯合作，国内访问速度不慢，Github我也是可以访问的，但是有的页面访问速度很慢，Gitlab我的网络压根就加载不出来，由于国内Gitee的访问速度还好，以及 之前也部署到Github和coding过，于是这次就部署到Gitee上。
第一步：注册Gitee账号，新建项目仓库
gitee官网： https://gitee.com/

1.注册账户（直达注册页面），能记住密码就行，不过我总是忘记密码🙃
2.新建项目仓库:忘说了，如果网页为英文，不太友好，在网站最底部右下角可以切</div>
        </div>
      </a>

      <div>
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-02-11&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA">博客搭建</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA">博客搭建</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mb-4 mx-auto">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/02/11/hexo-build-02/" target="_self">
          <img src="https://up.enterdesk.com/edpic_source/b2/9c/1b/b29c1b01e64b6dc14276f11a0b4190f0.jpg" srcset="/img/loading.gif" alt="Ubuntu中搭建Hexo博客记录（下篇）" class="img-fluid rounded z-depth-3 index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 m-auto">
      <a href="/2020/02/11/hexo-build-02/">
        <p class="h4 index-header">Ubuntu中搭建Hexo博客记录（下篇）</p>
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">2.正式安装Hexo程序环境准备好后，安装Hexo非常简单，只要一条命令即可：npm install npm-cli -g

具体详细介绍参考官方文档： https://hexo.io/zh-cn/docs/ （中文的，不怕不认识洋文😌）
安装过程不到一分钟吧，感觉不太慢，如果安装速度不行的话，就是npm在国内网络环境中不好使，我们可以切换成淘宝 npm镜像（在淘宝的npm镜像站上还看见了nodejs的镜像，其实也可以从这上面安装最新版），使用淘宝的cnpm工具来代替npm。
安装cnpm：npm install -g cnpm --registry=https://registry.npm.taobao.org

安装了这么多东西，感觉挺乱的，现在整理一下哈，我的npm在哪里呀：which npm一下；我的cnpm在哪里呀，which cnpm一下；我的node在哪里呀，which node一下。。。感觉自己是个强迫症 🙂

好啦，好啦，都到位啦~接下来，就是创建网站项目了。
3.创建网站搞事情:-)(1)我要创建个目录来存放我的网站项目，那就在我的家目录里面mkdir 一个bl</div>
        </div>
      </a>

      <div>
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-02-11&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA%20Hexo">博客搭建 Hexo</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA">博客搭建</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mb-4 mx-auto">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2020/02/11/hexo-build-01/" target="_self">
          <img src="https://up.enterdesk.com/edpic_source/98/80/c8/9880c85e173b4b1d3daa8b931c3c9d0f.jpg" srcset="/img/loading.gif" alt="Ubuntu中搭建Hexo博客记录（上篇）" class="img-fluid rounded z-depth-3 index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 m-auto">
      <a href="/2020/02/11/hexo-build-01/">
        <p class="h4 index-header">Ubuntu中搭建Hexo博客记录（上篇）</p>
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">##1.Hexo部署前的环境准备
安装hexo之前需要准备好一些必要的环境，参照着Hexo官网的文档一步一步来即可。
Hexo官网：https://hexo.io
官方文档提示需要安装nodejs和Git，其中nodejs的版本不能低于8.10，推荐10.0及以上。其实，这里的nodejs中还包括了npm这个包管理器，用来下载安装Hexo的。如果下载的nodejs中没有npm的话还需要安装npm，当然这是后续之需，我们先来下载nodejs吧！
第一步，安装NodeJs：
NodeJs官网：https://nodejs.org

NodeJs中文官网： https://nodejs.org/zh-cn/


安装nodejs的方法也很多，这里总结了四种：
①在nodejs官网下载安装包，解压后进行环境配置：具体过程可以参考这篇文章：Ubuntu安装Nodejs（通过官方tar.xz文件）官方的tar.xz文件可以在这个页面下载： https://nodejs.org/en/download/

这样安装之后是带有npm的。
②通过官方源码编译安装：可以参考这篇文章-&gt;Node–Ub</div>
        </div>
      </a>

      <div>
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2020-02-11&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA">博客搭建</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA">博客搭建</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mb-4 mx-auto">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2019/10/13/C%E6%8A%98%E8%85%BE%E7%AC%94%E8%AE%B0/" target="_self">
          <img src="https://up.enterdesk.com/edpic/57/06/d1/5706d173ba7fcfcd482f73cb85a841e9.jpg" srcset="/img/loading.gif" alt="如何将一个数组倒置呢？" class="img-fluid rounded z-depth-3 index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 m-auto">
      <a href="/2019/10/13/C%E6%8A%98%E8%85%BE%E7%AC%94%E8%AE%B0/">
        <p class="h4 index-header">如何将一个数组倒置呢？</p>
        
        
          
          
        
        <div class="index-excerpt" style="max-height: none;">
          <div class="index-text mb-1">今天知道了，如何将一个数组倒置过来，随手记录下，以后回来看看～...</div>
        </div>
      </a>

      <div>
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2019-10-13&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/C%E7%9A%84%E9%82%A3%E4%BA%9B%E4%BA%8B">C的那些事</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/%E7%AC%94%E8%AE%B0">笔记</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mb-4 mx-auto">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2019/10/12/%E5%85%AC%E4%BC%97%E5%8F%B7%E8%B5%84%E6%BA%90%E6%B1%87%E6%80%BB/" target="_self">
          <img src="https://up.enterdesk.com/edpic_source/ca/22/05/ca2205c05df64d548a744beba7176152.jpg" srcset="/img/loading.gif" alt="公众号资源汇总" class="img-fluid rounded z-depth-3 index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 m-auto">
      <a href="/2019/10/12/%E5%85%AC%E4%BC%97%E5%8F%B7%E8%B5%84%E6%BA%90%E6%B1%87%E6%80%BB/">
        <p class="h4 index-header">公众号资源汇总</p>
        
        
          
          
        
        <div class="index-excerpt" style="max-height: none;">
          <div class="index-text mb-1">个人公众号，收藏一些资源，在此汇总记录哈～主要有以下几大类：
一、PC软件类1.Windows端「1」基础软件
3款好用的解压缩软件⚡️
4款很优秀很强大的图片查看编辑软件⚡️
3款优秀的本地音视频播放器分享⚡️...</div>
        </div>
      </a>

      <div>
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2019-10-12&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E8%B5%84%E6%BA%90%E5%88%86%E4%BA%AB">资源分享</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/%E8%B5%84%E6%BA%90%E5%88%86%E4%BA%AB">资源分享</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mb-4 mx-auto">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2019/10/11/%E5%BD%B1%E8%A7%86%E7%BD%91%E7%AB%99%E5%88%86%E4%BA%AB/" target="_self">
          <img src="https://up.enterdesk.com/edpic_source/cf/70/cd/cf70cd1cd330328f3a1eae7c1332acae.jpg" srcset="/img/loading.gif" alt="影视网站分享" class="img-fluid rounded z-depth-3 index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 m-auto">
      <a href="/2019/10/11/%E5%BD%B1%E8%A7%86%E7%BD%91%E7%AB%99%E5%88%86%E4%BA%AB/">
        <p class="h4 index-header">影视网站分享</p>
        
        
          
          
        
        <div class="index-excerpt" style="max-height: none;">
          <div class="index-text mb-1">大家好！我是泉来，这里记录下一些我收藏的影视玩网站，之所以放在博客上，还是方便自己需要时即可获取！
影视资源网站1、No视频 
2、煎饼电影
3、酷绘视频
4、影视分享...</div>
        </div>
      </a>

      <div>
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2019-10-11&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E8%B5%84%E6%BA%90%E5%88%86%E4%BA%AB">资源分享</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/%E8%B5%84%E6%BA%90%E5%88%86%E4%BA%AB">资源分享</a>&nbsp;
          
        
      </div>
    </div>
  </div>

  <div class="row mb-4 mx-auto">
    
    
      <div class="col-12 col-md-4 m-auto">
        <a href="/2019/10/07/Attention/" target="_self">
          <img src="https://s2.ax1x.com/2020/01/23/1ErCb6.png" srcset="/img/loading.gif" alt="公告" class="img-fluid rounded z-depth-3 index-thumbnails">
        </a>
      </div>
    
    <div class="col-12 col-md-8 m-auto">
      <a href="/2019/10/07/Attention/">
        <p class="h4 index-header">公告</p>
        
        
          
        
        <div class="index-excerpt" >
          <div class="index-text mb-1">欢迎Fansure的小栈，这是我创建的个人博客。
博客虽小，但情怀不淡…与自已记录平常的收获与他人共享知识与经验你好路过的人儿！
</div>
        </div>
      </a>

      <div>
        
          <i class="iconfont icon-riqi2"></i>&nbsp;2019-10-07&nbsp;&nbsp;
        
        
          <i class="iconfont icon-inbox"></i>
          
            <a href="/categories/%E5%85%AC%E5%91%8A">公告</a>&nbsp;
          &nbsp;
        
        
          <i class="iconfont icon-tag"></i>
          
            <a href="/tags/%E5%85%AC%E5%91%8A">公告</a>&nbsp;
          
        
      </div>
    </div>
  </div>





              </div>
            </div>
          </div>
        </div>
      </div>
    
  </main>

  
    <a class="z-depth-1" id="scroll-top-button" href="#" role="button">
      <i class="fa fa-chevron-up scroll-top-arrow" aria-hidden="true"></i>
    </a>
  

  
    <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
  

  <footer class="mt-5">
  <div class="text-center py-3">
    <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><b>Hexo</b></a>
    <i class="iconfont icon-love"></i>
    <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"> <b>Fluid</b></a>
    <br>

    
  
    <!-- 不蒜子统计PV -->
    
    &nbsp;<span id="busuanzi_container_site_pv">总访问量 
          <span id="busuanzi_value_site_pv"></span> 次</span>&nbsp;
  
  
    <!-- 不蒜子统计UV -->
    
    &nbsp;<span id="busuanzi_container_site_uv">总访客数 
            <span id="busuanzi_value_site_uv"></span> 人</span>&nbsp;
  
  <br>



    


    <!-- cnzz Analytics icon -->
    

  </div>
</footer>

<!-- SCRIPTS -->
<script src="/lib/jquery/jquery.min.js" ></script>
<script src="/lib/popper/popper.min.js" ></script>
<script src="/lib/bootstrap/js/bootstrap.min.js" ></script>
<script src="/lib/mdbootstrap/js/mdb.min.js" ></script>
<script src="/js/main.js" ></script>


  <script src="/js/lazyload.js" ></script>





  <script src="/lib/smooth-scroll/smooth-scroll.min.js" ></script>



  <script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>


<!-- Plugins -->


  

  

  

  

  <!-- cnzz Analytics -->
  



  <script src="/lib/prettify/prettify.min.js" ></script>
  <script>
    $(document).ready(function () {
      $('pre').addClass('prettyprint  linenums');
      prettyPrint();
    })
  </script>



  <script src="/lib/typed/typed.min.js" ></script>
  <script>
    var typed = new Typed('#subtitle', {
      strings: [
        '  ',
        "Fansure的小栈&nbsp;",
      ],
      cursorChar: "_",
      typeSpeed: 70,
      loop: false,
    });
    typed.stop();
    $(document).ready(function () {
      $(".typed-cursor").addClass("h2");
      typed.start();
    });
  </script>



  <script src="/lib/anchor/anchor.min.js" ></script>
  <script>
    anchors.options = {
      placement: "right",
      visible: "false",
      
    };
    var el = "h1,h2,h3,h4,h5,h6".split(",");
    var res = [];
    for (item of el) {
      res.push(".markdown-body > " + item)
    }
    anchors.add(res.join(", "))
  </script>



  <script src="/js/local-search.js" ></script>
  <script>
    var path = "/local-search.xml";
    var inputArea = document.querySelector("#local-search-input");
    inputArea.onclick = function () {
      getSearchFile(path);
      this.onclick = null
    }
  </script>



  <script src="/lib/fancybox/jquery.fancybox.min.js" ></script>
  <script>
    $("#post img:not(.no-zoom img, img[no-zoom])").each(
      function () {
        var element = document.createElement("a");
        $(element).attr("data-fancybox", "images");
        $(element).attr("href", $(this).attr("src"));
        $(this).wrap(element);
      }
    );
  </script>





  
  
    <script>
      !function (e, t, a) {
        function r() {
          for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = "left:" + s[e].x + "px;top:" + s[e].y + "px;opacity:" + s[e].alpha + ";transform:scale(" + s[e].scale + "," + s[e].scale + ") rotate(45deg);background:" + s[e].color + ";z-index:99999");
          requestAnimationFrame(r)
        }

        function n() {
          var t = "function" == typeof e.onclick && e.onclick;
          e.onclick = function (e) {
            t && t(), o(e)
          }
        }

        function o(e) {
          var a = t.createElement("div");
          a.className = "heart", s.push({
            el: a,
            x: e.clientX - 5,
            y: e.clientY - 5,
            scale: 1,
            alpha: 1,
            color: c()
          }), t.body.appendChild(a)
        }

        function i(e) {
          var a = t.createElement("style");
          a.type = "text/css";
          try {
            a.appendChild(t.createTextNode(e))
          } catch (t) {
            a.styleSheet.cssText = e
          }
          t.getElementsByTagName("head")[0].appendChild(a)
        }

        function c() {
          return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")"
        }

        var s = [];
        e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) {
          setTimeout(e, 1e3 / 60)
        }, i(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"), n(), r()
      }(window, document);
    </script>
  







</body>
</html>
